package flysearch;

import java.util.Locale;
import java.util.ResourceBundle;
import java.text.MessageFormat;
/*
var locals = Locale.getAvailableLocales();
for(local in locals){
    println("{local.getCountry()} : {local.getLanguage()}");
}*/

var local = Locale.getDefault();
println(local);
var rb = ResourceBundle.getBundle("message", local);
var msg = rb.getString("hello");
println(msg);
println(MessageFormat.format(msg, "北京"));




